

#include "node.h"
#include <math.h>

Node::Node( int _id, double _x, double _y )
: m_id( _id )
, m_x( _x )
, m_y( _y )
{

}


int 
Node::getId()
{
  return m_id;
}


double 
Node::getX()
{
  return m_x;
}


double 
Node::getY()
{
  return m_y;
}


bool 
Node::hasCoordinates( double _x, double _y )
{
  if( fabs(m_x-_x)<1e-5 && fabs(m_y-_y)<1e-5 )
  {
    return true;
  }
  return false;
}
